package com.dataextend.dto;


import lombok.Data;

@Data
public class PgMessageResult {
    private Integer code;
    private String msg;
    private Object data;

    public static PgMessageResult success(Object data){
        return new PgMessageResult(0,"请求成功",data);
    }

    public PgMessageResult(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }


}
